import { AxiosPromise } from "axios";
import  axios  from  "../../model/axios";
import info from "../../model/table/menu";
import IService from "./IService";

class  Service implements IService{
    query(params: info): AxiosPromise<any> {
        return  axios({
            method:"get",
            url:"/menu",
            params
        })
    }
    add(data: info): AxiosPromise<any> { 

         return  axios({
            method:"post",
            url:"/menu",
            data
        })
    }
    
}

export  default  new  Service();